<!DOCTYPE html>
<html lang="zh">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>手写dom</title>
    <style>
        .red {
            color: red
        }

        .blue {
            color: blue;
        }
    </style>
</head>

<body>
    你好
    <div id=x>
        <div id="test">
            <p class="red">红色</p>
        </div>
        <div2 id="test2">
        </div2>
    </div>
    <div id=empty>
        <div>1</div>
        <div>2</div>
        <div>3</div>
    </div>
    <div id=travel>
        <div>1</div>
        <div>2</div>
        <div>3</div>
    </div>
    <script src="dom.js"></script>
    <script src="main.js"></script>
</body>

</html>